package basic._02_单例模式;

/**
 * @author： YHSimon
 * @date： 2022-07-08 15:18
 */
// 静态内部类
public class Singleton5 {
    private static class SingletonHolder{
        private static final Singleton5 INSTANCE =new Singleton5();
    }
    private Singleton5(){}
    public static Singleton5 getInstance(){
        return SingletonHolder.INSTANCE;
    }
}
